import request from '@/utils/request'

// 查询店铺图片列表列表
export function listShopImages(query) {
  return request({
    url: '/shop/shopImages/list',
    method: 'get',
    params: query
  })
}

export function downloadShopImages(query) {
  return request({
    url: '/shop/shopImages/downloadShopImages',
    method: 'get',
    params: query
  })
}

// 查询店铺图片列表详细
export function getShopImages(id) {
  return request({
    url: '/shop/shopImages/' + id,
    method: 'get'
  })
}

// 新增店铺图片列表
export function addShopImages(data) {
  return request({
    url: '/shop/shopImages',
    method: 'post',
    data: data
  })
}

// 修改店铺图片列表
export function updateShopImages(data) {
  return request({
    url: '/shop/shopImages',
    method: 'put',
    data: data
  })
}
// 修改店铺图片列表
export function updateShopImagesOne(data) {
  return request({
    url: '/shop/shopImagesOne',
    method: 'put',
    data: data
  })
}

// 删除店铺图片列表
export function delShopImages(id) {
  return request({
    url: '/shop/shopImages/' + id,
    method: 'delete'
  })
}
